<%@ page language="java" import="com.erclab.internal.xpresso.security.User" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

Email: <%=((User)request.getSession().getAttribute("user")).getEmail()%><br>
IdUser: <%=((User)request.getSession().getAttribute("user")).getIdUser()%><br>
User name: <%=((User)request.getSession().getAttribute("user")).getUserName()%><br>
First name: <%=((User)request.getSession().getAttribute("user")).getFirstName()%><br>
Last name: <%=((User)request.getSession().getAttribute("user")).getFirstName()%><br>
Current roles: <BR>
        <% User u = (User)request.getSession().getAttribute("user");
	  	for (int i = 0; i < u.getRoles().length; i ++){
			out.println(" - " + u.getRoles()[i] + "<BR>");
		} %>

</body>
</html>
